<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>常用命令</title>
    <style>
        .my {
            border: 1px solid red;
        }
    </style>
</head>
<body>
<!--文本插值-->
<div id="div">
    <div>{{msg}}</div>
    <div v-html="msg"></div>
</div>

<!--绑定属性-->
<div id="div1">
    <a v-bind:href="url">百度一下</a>
    <br>
    <a :href="url">百度一下</a>
    <br>
    <div :class="cls">我是div</div>
</div>
</body>
<script src="js/vue.js"></script>
<script>
    //文本插值
    new Vue({
        el: "#div",
        data: {
            msg: "<b>hello</b>"
        }
    });

    //绑定属性
    new Vue({
        el: "#div1",
        data: {
            url: "https://www.baidu.com",
            cls: "my"
        }
    });

</script>
</html>